﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="admin_test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
            DataKeyNames="id" DataSourceID="AccessDataSource1">
            <Columns>
                <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True"
                    SortExpression="id" />
                <asp:BoundField DataField="admin_name" HeaderText="admin_name" SortExpression="admin_name" />
                <asp:BoundField DataField="admin_pwd" HeaderText="admin_pwd" SortExpression="admin_pwd" />
                <asp:CommandField ShowEditButton="True" />
            </Columns>
        </asp:GridView>
        <input id="Button2" type="button" value="button" />
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/db.mdb"
            SelectCommand="SELECT * FROM [admin]"></asp:AccessDataSource>
        <asp:ListBox ID="lb" runat="server">
            <asp:ListItem>1</asp:ListItem>
            <asp:ListItem>2</asp:ListItem>
        </asp:ListBox>
        <asp:Button CssClass="btn"  ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />c</div>
    </form>
</body>
</html>
